package org.davidtrevien.com.imput.omi.panels.top;

import javax.swing.JPanel;

import layout.TableLayout;

import org.davidtrevien.com.imput.omi.callback.NavigationCallback;
import org.davidtrevien.com.imput.omi.panels.top.menu.MenuCtrl;

@SuppressWarnings("serial")
public class TopView
extends JPanel {

	protected MenuCtrl menuCtrl;
	
	public TopView(NavigationCallback callback) {
		initComponent(callback);
	}

	private void initComponent(NavigationCallback callback) {
		double size[][] = new double[][] {
				{TableLayout.FILL},
				{TableLayout.FILL}
		};
		TableLayout layout = new TableLayout(size);
		
		setLayout(layout);
		
		this.menuCtrl = new MenuCtrl(callback);
		
		add(this.menuCtrl.getView(), "0,0");
	}
}
